let toBaiduBtnEle = document.getElementById('toBaiduBtn')
console.log(22222);
toBaiduBtnEle.onclick = ()=>{
  // let currentPageEleText = document.querySelector("html").innerHTML
  // console.log(currentPageEleText);
  chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
    var tab = tabs[0];
    console.log(tab,'tab');
    chrome.tabs.sendMessage(tab.id, { action: 'wangdev' }, function (response) {
      var textContent = response;
      console.log(textContent); // 在控制台输出文本内容
    });
  });
}


